package com.treetao.union.db.mapper;


import java.util.Map;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.treetao.union.db.model.SysRole;
import com.treetao.union.db.model.SysUser;

/**
 * <p>
  *  Mapper 接口
 * </p>
 */
public interface SysUserDao extends BaseMapper<SysUser> {
	SysUser selectUserByMap(Map<String, Object> map);

	void saveUserRoles(@Param("userId")Long id, @Param("roleIds")Set<SysRole> roles);

	void dropUserRolesByUserId(@Param("userId")Long userId);
}